package cn.lili.modules.system.entity.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * @TableName li_region_ybj
 */
@TableName(value = "li_region_ybj")
@Data
public class RegionYbj implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 父id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;

    /**
     * 地区名
     */
    private String name;

    /**
     * 级别(1省，2市，3区，4街)
     */
    private Integer level;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}